<template>
  <input class="center" type="text" :value="demo" @input="$emit('update:demo',$event.target.value)">
  <input class="center" type="text" :value="name" @input="$emit('update:name',$event.target.value)">
</template>
<script setup>
defineProps(['demo','name'])
// defineEmits(['update:demo','update:name'])

</script>
<style>
.center{
  display: block;
  margin: 0 auto;
}
</style>